package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ErpSendingMapper;
import com.ruoyi.system.domain.ErpSending;
import com.ruoyi.system.service.IErpSendingService;

/**
 * 寄件申请Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-26
 */
@Service
public class ErpSendingServiceImpl implements IErpSendingService 
{
    @Autowired
    private ErpSendingMapper erpSendingMapper;

    /**
     * 查询寄件申请
     * 
     * @param id 寄件申请主键
     * @return 寄件申请
     */
    @Override
    public ErpSending selectErpSendingById(Long id)
    {
        return erpSendingMapper.selectErpSendingById(id);
    }

    /**
     * 查询寄件申请列表
     * 
     * @param erpSending 寄件申请
     * @return 寄件申请
     */
    @Override
    public List<ErpSending> selectErpSendingList(ErpSending erpSending)
    {
        return erpSendingMapper.selectErpSendingList(erpSending);
    }

    /**
     * 新增寄件申请
     * 
     * @param erpSending 寄件申请
     * @return 结果
     */
    @Override
    public int insertErpSending(ErpSending erpSending)
    {
        return erpSendingMapper.insertErpSending(erpSending);
    }

    /**
     * 修改寄件申请
     * 
     * @param erpSending 寄件申请
     * @return 结果
     */
    @Override
    public int updateErpSending(ErpSending erpSending)
    {
        return erpSendingMapper.updateErpSending(erpSending);
    }

    /**
     * 批量删除寄件申请
     * 
     * @param ids 需要删除的寄件申请主键
     * @return 结果
     */
    @Override
    public int deleteErpSendingByIds(Long[] ids)
    {
        return erpSendingMapper.deleteErpSendingByIds(ids);
    }

    /**
     * 删除寄件申请信息
     * 
     * @param id 寄件申请主键
     * @return 结果
     */
    @Override
    public int deleteErpSendingById(Long id)
    {
        return erpSendingMapper.deleteErpSendingById(id);
    }
}
